import { newproject ,newProgress} from "@/services/index";


import { makeAutoObservable } from "mobx";
import {ImyProject,ImyProjectList} from "@/utils/myProject";



class MyProject {
    constructor() {
        makeAutoObservable(this);
    }
    // let [queryParams, setQueryParams] = useState<ImyProject>(as ImyProject)  
    ImyProjectLis:ImyProjectList[]=[];


    // 右侧的数据
    async newproject(queryParams:ImyProject){
        let res= await newproject(queryParams);
        this.ImyProjectLis=res.rows
        console.log(this.ImyProjectLis);   
    }
    // 获取左侧的数据
 

}

export default new MyProject